From 82e24215429b1b07d36980b43cbed25956703c92 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 7 Feb 2001 11:37:05 +0000 Subject: [PATCH] Use g_free, since the buffer is allocated with g_try_alloc(). 2001-02-07 Alexander Larsson * io-xpm.c (free_buffer): Use g_free, since the buffer is allocated with g_try_alloc(). --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/io-xpm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 42ea468b33..4b1d13dc4d 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2001-02-07 Alexander Larsson + + * io-xpm.c (free_buffer): + Use g_free, since the buffer is allocated with g_try_alloc(). + 2001-02-06 Christophe Merlet * gdk-pixbuf-data.c: Fixes a minor typo. diff --git a/gdk-pixbuf/io-xpm.c b/gdk-pixbuf/io-xpm.c index 00cb7b9365..0ddc3c234e 100644 --- a/gdk-pixbuf/io-xpm.c +++ b/gdk-pixbuf/io-xpm.c @@ -1229,7 +1229,7 @@ mem_buffer (enum buf_op op, gpointer handle) static void free_buffer (guchar *pixels, gpointer data) { - free (pixels); + g_free (pixels); } /* This function does all the work. */ -- 2.30.2